package cn.wolfcode.service;

import cn.wolfcode.domain.Activity;
import cn.wolfcode.domain.ActivityItem;
import cn.wolfcode.domain.Choice;
import cn.wolfcode.qo.QueryObject;
import com.github.pagehelper.PageInfo;

import java.util.List;

public interface IActivityService {
    void save(Activity activity);
    void delete(Long id);
    void update(Activity activity);
    Activity get(Long id);
    List<Activity> listAll();
    // 分页查询的方法
    PageInfo<Activity> query(QueryObject qo);

    List<ActivityItem> selectByAid(Long id);

    Choice selectByempIdAndAid(Long empId, Long Aid);

    void insertChoice(Long empId, Long activityItemId);

    ActivityItem getActivityItem(Long activityItemId);

    void updateActivityItem(ActivityItem activityItem);
}
